[]
        
(Showing Draft Content)

GrapeCity.Documents.Layout.Composition.Surface.CreateView

CreateView Method

CreateView(float, float)

Creates a View object that encapsulates a LayoutView and adds it as the top layer.

Declaration
public View CreateView(float width, float height)
Public Function CreateView(width As Single, height As Single) As View
Parameters
Type Name Description
float width

The width of the associated LayoutView.

float height

The height of the associated LayoutView.

Returns
Type Description
View

CreateView(float, float, Action<GcGraphics, Layer>)

Creates a View object that encapsulates a LayoutView and adds it as the top layer.

Declaration
public View CreateView(float width, float height, Action<GcGraphics, Layer> draw)
Public Function CreateView(width As Single, height As Single, draw As Action(Of GcGraphics, Layer)) As View
Parameters
Type Name Description
float width

The width of the associated LayoutView.

float height

The height of the associated LayoutView.

Action<GcGraphics, Layer> draw

A delegate that accepts a GcGraphics object and a Layer, and draws the layer on the graphics.

Returns
Type Description
View